<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/pages/templates/template.xhtml">

	<ui:define name="meio">
		<ui:include src="menu.xhtml" />
	</ui:define>

	<ui:define name="centro">

		<h:panelGrid columns="1" id="itensTopico">
			<h:outputText value="Resumo" />
			<h:outputText value="#{buscaMB.topico.resumo}" />


			<p:dataGrid var="item" value="#{buscaMB.item}" columns="1">
				<h:outputText value="#{buscaMB.topico.caminho}/#{item.nomeArquivo}"
					rendered="#{not item.nomeArquivo.endsWith('.pdf')}" />
				<h:form>
					<h:commandLink action="visualizador" value="visualizar"
						target="_blank" rendered="#{item.nomeArquivo.endsWith('.pdf')}">
						<f:param name="pdf"
							value="#{buscaMB.topico.caminho}/#{item.nomeArquivo}" />
					</h:commandLink>
				</h:form>

			</p:dataGrid>
			<!-- <h:outputText value="#{item.nomeArquivo}"
					rendered="#{pageControl.funcionario.nvlAcesso.id>=item.nvlAcesso.id}" /> -->


		</h:panelGrid>
	</ui:define>

</ui:composition>
